<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" href="/wechat/home/home.css">
    <link rel="stylesheet" href="/wechat/home/slick.css">
    <style>
        html{
            width:100%;
            overflow-x:hidden;
        }
    </style>
    <jsp:include page="../public/head.jsp" flush="true" />
    <script src="/wechat/public/js/yxMobileSlider.js"></script>
    <script src="/wechat/home/slick.js"></script>
    <script src="/wechat/home/scripts.js"></script>
</head>
<body>
<!-- 头部 -->
<header >
    <div class="h-cont">
        <div class="h-r"><a href="/home/chooseCity.do"><i class="iconfont icon-pisition">&#xe609;</i><span>${area.cityName}</span><i class="iconfont icon-pisition">&#xe61e;</i></a> </div>
    </div>
</header>


<div class="h-ocupie"></div>
<div class="my_wrap">
    <!-- 导航 -->
    <div class="home-nav-down">
        <table width="100%">
            <tbody><tr>
                <td class="last"><a class="current"><i class="iconfont icon-shouye">&#xe612;</i>首页</a></td>
                <td><a href="/order/orderList.do" class="item bg2"><i class="iconfont icon-gouwuche">&#xe611;</i>订单</a></td>
                <td><a href="/ucenter/index.do" class="item bg5"><i class="iconfont icon-me">&#xe617;</i>我的</a></td>
            </tr>
            </tbody></table>
    </div>

<%--//如需更好体验--%>
    <%--<div class="index-tip"><a href="http://m.52letsgo.com/themes/default/saomiao.php">如需更好体验 请下载APP</a></div>--%>
<%--//如需更好体验--%>





    <section style="margin-top: 5rem">
         <div class="my_homepage">

            <div class="cont_b">

                <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                    <div class="carousel-inner" role="listbox">
                        <c:forEach items="${centerAd}" var="item" varStatus="statu">
                            <div class="item <c:if test="${statu.index == 0}">active</c:if> ">
                               <a href="${item.linkUrl}?mobile=${userinfo.mobile}&userId=${userinfo.id}&cityId=${userinfo.cityId}"> <img src="${item.picture}" ></a>
                            </div>
                        </c:forEach>
                    </div>
                </div>


                <div class="goods">
                    <c:forEach items="${productClasses}" var="item">
                        <div class="cont">
                            <a href="/home/beforelogin/productList.do?classId=${item.id}&sellcount=${item.sellcount}&closetime=${item.closetime}"> <img src="${item.classImage}"></a>
                            <%--<div class="info"> <span class="s1">销量：<span class="s2">${item.sellcount}</span></span></div>--%>
                        </div>
                    </c:forEach>
                </div>
            </div>
        </div>
        <!--/cont_b-->
    </section>
    <!-- 尾部 -->
</div>

<footer>
    <div  class="my_ocupie"></div>
</footer>
</body>

</html>
